import { CategroySplitItem } from '@/api/split';
import { Option } from '../Selection/type';

export type SplitItemOption = Pick<Option, 'option_name' | 'option_value'>;

export type SplitItem = {
  id?: number;
  categoryName: string;
  categoryCode?: string;
  splitConditionOptions: SplitItemOption[];
};

export type CategorySplit = Omit<CategroySplitItem, 'splits' | 'status'> & {
  split: SplitItem;
  rowSpan: number;
  status?: number;
};
